Search
CustomPaintEventArgs.CreateLinearGradient Method (Single, Object[])
See Also
 






Creates a linear gradient with orientation defined by an angle and a blend specified by a series of positions and color objects.

Namespace: MindFusion.Gauges
Assembly: MindFusion.Gauges

 Syntax

C#  Copy Code

public LinearGradientBrush CreateLinearGradient (
    float angle,
    Object[] positionsAndColors
)

Visual Basic  Copy Code

Public Function CreateLinearGradient ( _
    angle As Single, _
    positionsAndColors() As Object _
) As LinearGradientBrush

 Parameters

angle

The orientation of the gradient, expressed in degrees.

positionsAndColors
An alternating sequence of float and Color pairs where each pair defines a gradient stop. The positions in the sequence need to be in ascending order.

 Return Value

A MindFusion.Drawing.LinearGradientBrush with the specified characteristics.

 See Also